package top.lichuankai.wiki.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.lichuankai.wiki.req.EbookReq;
import top.lichuankai.wiki.resp.CommonResp;
import top.lichuankai.wiki.service.EbookService;

import javax.annotation.Resource;

@RestController
@RequestMapping("/ebook")
public class EbookController {

    @Resource
    EbookService ebookService;

    @GetMapping("/list")
    public CommonResp list(EbookReq ebookReq){
        return ebookService.list(ebookReq);
    }


}
